package edu.zqu.course.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import edu.zqu.course.project.domain.pojo.CourseSyllabusDescription;
import edu.zqu.course.response.SessionShow;
import edu.zqu.course.response.TeachingProgram;
import edu.zqu.course.response.TeachingProgramDetail;

import java.util.List;

/**
 * <p>
 * 课程大纲内容，即：章 服务类
 * </p>
 *
 * @author 郭泽鹏
 * @since 2020-06-24
 */
public interface CourseSyllabusDescriptionService extends IService<CourseSyllabusDescription> {
    /**
     * 查询所有
     * @return
     */
    public List<CourseSyllabusDescription> getCourseSyllabusDescriptionList();

    /**
     * 教学计划：通过教学大纲id和章序号查询
     */
    public List<TeachingProgram> getCsdTpByCsIdAndChapter(String csId, Integer page, Integer size);

    /**
     * 教学计划详细：通过教学大纲id和章序号查询
     */
    public TeachingProgramDetail getCsdTpdById(Long id);

    /**
     * 节展示
     */
    public SessionShow getSessionShowById(Long id);

    /**
     * 删除操作
     * 删除所有
     */
    public Integer deleteCourseSyllabusDescriptionList();

    /**
     * 通过章id进行删除
     */
    public Integer deleteByCSDID(Long id);

    /**
     * 更新操作
     */
    public Integer putCsdTpdByCsIdAndChapter(CourseSyllabusDescription courseSyllabusDescription);

    /**
     * 更新节展示
     */
    public Integer putSessionShow(SessionShow sessionShow);

    /**
     * 添加课程大纲内容
     */
    public Integer insertCourseSyllabusDescription(CourseSyllabusDescription courseSyllabusDescription);
}
